package com.bootdo.fx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.fx.dao.DistributionRuleSetupDao;
import com.bootdo.fx.domain.DistributionRuleSetupDO;
import com.bootdo.fx.service.DistributionRuleSetupService;



@Service
public class DistributionRuleSetupServiceImpl implements DistributionRuleSetupService {
	@Autowired
	private DistributionRuleSetupDao distributionRuleSetupDao;
	
	@Override
	public DistributionRuleSetupDO get(Long ruleId){
		return distributionRuleSetupDao.get(ruleId);
	}
	
	@Override
	public List<DistributionRuleSetupDO> list(Map<String, Object> map){
		return distributionRuleSetupDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return distributionRuleSetupDao.count(map);
	}
	
	@Override
	public int save(DistributionRuleSetupDO distributionRuleSetup){
		return distributionRuleSetupDao.save(distributionRuleSetup);
	}
	
	@Override
	public int update(DistributionRuleSetupDO distributionRuleSetup){
		return distributionRuleSetupDao.update(distributionRuleSetup);
	}
	
	@Override
	public int remove(Long ruleId){
		return distributionRuleSetupDao.remove(ruleId);
	}
	
	@Override
	public int batchRemove(Long[] ruleIds){
		return distributionRuleSetupDao.batchRemove(ruleIds);
	}
	
}
